import { defHttp } from '/@/utils/http/axios';
import { ContentTypeEnum } from '/@/enums/httpEnum';

enum Api {
  getscheduleList = '/admin-api/system/schedule/list',
  getscheduleAdd = '/admin-api/system/schedule/create',
  getscheduleEdit = '/admin-api/system/schedule/update',
  getscheduleDelete = '/admin-api/system/schedule/delete',
}

/**
 * @description: 获用户
 */
export const scheduleList = (params: any) => {
  return defHttp.get<any>({ url: Api.getscheduleList, params });
};
export const addschedule = (params: any) => {
  return defHttp.post<any>({ url: Api.getscheduleAdd, params });
};
export const editschedule = (params: any) => {
  return defHttp.put<any>({ url: Api.getscheduleEdit, params });
};
export const deleteschedule = (params: any) => {
  return defHttp.delete<any>({
    url: Api.getscheduleDelete,
    params,
    headers: { 'Content-Type': ContentTypeEnum.FORM_URLENCODED },
  });
};
